﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DLL.UploadFile
{
	/// <summary>
	/// 上传文件实体类
	/// </summary>
	/// <![CDATA[2014-8-12 03:57:54]]>
	public class Entity : EntityBase
	{
		#region 属性
		public string strFileName = "";		// 文件名
		public int nWebColumnID = 0;		// 上传到的栏目ID
		public string strDate = "";		// 文件显示上传时间
		public int nUserID = 0;		// 文件上传人ID
		public int nDepartmentID = 0;		// 文件上传人所属单位
		public string strDateTime = "";		// 真实文件上传时间
		public string strIP = "";		// 上传文件电脑IP
		public int nFileContentID = 0;		// 文件内容ID

		public string strWebColumn = "";		// 文件上传到栏目的栏目名称

		private string strDepartmentName = "";		// 单位名称
		#endregion 属性

		#region Get、Set属性
		/// <summary>
		/// 单位名称
		/// </summary>
		public string DepartmentName
		{
			get { return strDepartmentName; }
			set { strDepartmentName = value.Trim(); }
		}
		/// <summary>
		/// 文件名
		/// </summary>
		/// <![CDATA[2014-8-12 04:03:12]]>
		public string FileName
		{
			get { return strFileName; }
			set { strFileName = value.Trim(); }
		}
		/// <summary>
		/// 上传到的栏目ID
		/// </summary>
		/// <![CDATA[2014-8-12 04:04:04]]>
		public int WebColumnID
		{
			get { return nWebColumnID; }
			set { nWebColumnID = value; }
		}
		/// <summary>
		/// 
		/// </summary>
		/// <![CDATA[2014-8-12 04:04:47]]>
		public string Date
		{
			get { return TonyNet4V1.CommonFunction.FormatDate(strDate, page); }
			set { strDate = value.Trim(); }
		}
		/// <summary>
		/// 文件上传人ID
		/// </summary>
		/// <![CDATA[2014-8-12 04:05:23]]>
		public int UserID
		{
			get { return nUserID; }
			set { nUserID = value; }
		}
		/// <summary>
		/// 文件上传人所属单位
		/// </summary>
		/// <![CDATA[2014-8-12 04:05:52]]>
		public int DepartmentID
		{
			get { return nDepartmentID; }
			set { nDepartmentID = value; }
		}
		/// <summary>
		/// 真实文件上传时间
		/// </summary>
		/// <![CDATA[2014-8-12 04:06:36]]>
		public string DateTime
		{
			get { return strDateTime; }
			set { strDateTime = value.Trim(); }
		}
		/// <summary>
		/// 上传文件电脑IP
		/// </summary>
		/// <![CDATA[2014-8-12 04:07:08]]>
		public string IP
		{
			get { return strIP; }
			set { strIP = value.Trim(); }
		}
		/// <summary>
		/// 文件内容ID
		/// </summary>
		/// <![CDATA[2014-8-15 15:02:45]]>
		public int FileContentID
		{
			get { return nFileContentID; }
			set { nFileContentID = value; }
		}

		/// <summary>
		/// 文件上传到栏目的栏目名称
		/// </summary>
		/// <![CDATA[2014-8-18 17:56:34]]>
		public string WebColumn
		{
			get { return strWebColumn; }
			set { strWebColumn = value.Trim(); }
		}
		#endregion Get、Set属性

		#region 构造函数
		/// <summary>
		/// 实体类构造函数
		/// </summary>
		/// <![CDATA[2014-8-12 03:57:54]]>
		public Entity()
			: base()
		{
			
		}

		public Entity(System.Web.UI.Page page)
			: base(page)
		{

		}
		#endregion 构造函数
	}
}
